import request from '@/utils/request'

export function runScript(data) {
  return request({
    url: '/gather/gather/collectProductAccount/runScript',
    method: 'post',
    data: data
  })
}

// 查询采集商品账号列表
export function listCollectProductAccount(query) {
  return request({
    url: '/gather/gather/collectProductAccount/list',
    method: 'get',
    params: query
  })
}

// 查询采集商品账号详细
export function getCollectProductAccount(id) {
  return request({
    url: '/gather/gather/collectProductAccount/' + id,
    method: 'get'
  })
}

// 新增采集商品账号
export function addCollectProductAccount(data) {
  return request({
    url: '/gather/gather/collectProductAccount',
    method: 'post',
    data: data
  })
}

// 修改采集商品账号
export function updateCollectProductAccount(data) {
  return request({
    url: '/gather/gather/collectProductAccount',
    method: 'put',
    data: data
  })
}

// 删除采集商品账号
export function delCollectProductAccount(id) {
  return request({
    url: '/gather/gather/collectProductAccount/' + id,
    method: 'delete'
  })
}
